package string;

/**
 * @Author Klys
 * @Date 2023/4/4 1:20
 * @Description
 * @Version 1.0
 */

/**
 * string转int
 */
public class Demo03 {
    public static void main(String[] args) {
        //string转int
        String s = new String("1");
        int parseInt = Integer.parseInt(s);
        System.out.println(parseInt);

        //int转string
        String toString = Integer.toString(parseInt);
        System.out.println(toString);
    }
}
